package com.soft.javase.day15.reflect;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/5/27
 */
public class Teacher {
    private String name;
    private int workAge;
    private String major;

    public Teacher() {
    }

    public Teacher(String name, int workAge, String major) {
        this.name = name;
        this.workAge = workAge;
        this.major = major;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getWorkAge() {
        return workAge;
    }

    public void setWorkAge(int workAge) {
        this.workAge = workAge;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }
}
